package com.aabte.design2.creational.prototype;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class Circle extends Shape {

    private int radius;

    public Circle() {
    }

    public Circle(Circle circle) {
        super(circle);
        this.radius = circle.radius;
    }

    @Override
    public Circle clone() {
        return new Circle(this);
    }
}
